Optimal. Leaf size=195 \[ \frac {2 (-1)^{3/4} d^{3/2} \tanh ^{-1}\left (\frac {(-1)^{3/4} \sqrt {d} \sqrt {a+i a \tan (e+f x)}}{\sqrt {a} \sqrt {c+d \tan (e+f x)}}\right )}{\sqrt {a} f}-\frac {i (c-i d)^{3/2} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {a} \sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d} \sqrt {a+i a \tan (e+f x)}}\right )}{\sqrt {2} \sqrt {a} f}+\frac {(i c-d) \sqrt {c+d \tan (e+f x)}}{f \sqrt {a+i a \tan (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.46, antiderivative size = 195, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3639, 3682,
3625, 214, 3680, 65, 223, 212} \begin {gather*} \frac {2 (-1)^{3/4} d^{3/2} \tanh ^{-1}\left (\frac {(-1)^{3/4} \sqrt {d} \sqrt {a+i a \tan (e+f x)}}{\sqrt {a} \sqrt {c+d \tan (e+f x)}}\right )}{\sqrt {a} f}+\frac {(-d+i c) \sqrt {c+d \tan (e+f x)}}{f \sqrt {a+i a \tan (e+f x)}}-\frac {i (c-i d)^{3/2} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {a} \sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d} \sqrt {a+i a \tan (e+f x)}}\right )}{\sqrt {2} \sqrt {a} f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 212
Rule 214
Rule 223
Rule 3625
Rule 3639
Rule 3680
Rule 3682
Rubi steps
\begin {align*} \int \frac {(c+d \tan (e+f x))^{3/2}}{\sqrt {a+i a \tan (e+f x)}} \, dx &=\frac {(i c-d) \sqrt {c+d \tan (e+f x)}}{f \sqrt {a+i a \tan (e+f x)}}-\frac {\int \frac {\sqrt {a+i a \tan (e+f x)} \left (-\frac {1}{2} a \left (c^2-2 i c d+d^2\right )+i a d^2 \tan (e+f x)\right )}{\sqrt {c+d \tan (e+f x)}} \, dx}{a^2}\\ &=\frac {(i c-d) \sqrt {c+d \tan (e+f x)}}{f \sqrt {a+i a \tan (e+f x)}}+\frac {(c-i d)^2 \int \frac {\sqrt {a+i a \tan (e+f x)}}{\sqrt {c+d \tan (e+f x)}} \, dx}{2 a}+\frac {d^2 \int \frac {(a-i a \tan (e+f x)) \sqrt {a+i a \tan (e+f x)}}{\sqrt {c+d \tan (e+f x)}} \, dx}{a^2}\\ &=\frac {(i c-d) \sqrt {c+d \tan (e+f x)}}{f \sqrt {a+i a \tan (e+f x)}}-\frac {\left (i a (c-i d)^2\right ) \text {Subst}\left (\int \frac {1}{a c-i a d-2 a^2 x^2} \, dx,x,\frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {a+i a \tan (e+f x)}}\right )}{f}+\frac {d^2 \text {Subst}\left (\int \frac {1}{\sqrt {a+i a x} \sqrt {c+d x}} \, dx,x,\tan (e+f x)\right )}{f}\\ &=-\frac {i (c-i d)^{3/2} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {a} \sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d} \sqrt {a+i a \tan (e+f x)}}\right )}{\sqrt {2} \sqrt {a} f}+\frac {(i c-d) \sqrt {c+d \tan (e+f x)}}{f \sqrt {a+i a \tan (e+f x)}}-\frac {\left (2 i d^2\right ) \text {Subst}\left (\int \frac {1}{\sqrt {c+i d-\frac {i d x^2}{a}}} \, dx,x,\sqrt {a+i a \tan (e+f x)}\right )}{a f}\\ &=-\frac {i (c-i d)^{3/2} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {a} \sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d} \sqrt {a+i a \tan (e+f x)}}\right )}{\sqrt {2} \sqrt {a} f}+\frac {(i c-d) \sqrt {c+d \tan (e+f x)}}{f \sqrt {a+i a \tan (e+f x)}}-\frac {\left (2 i d^2\right ) \text {Subst}\left (\int \frac {1}{1+\frac {i d x^2}{a}} \, dx,x,\frac {\sqrt {a+i a \tan (e+f x)}}{\sqrt {c+d \tan (e+f x)}}\right )}{a f}\\ &=\frac {2 (-1)^{3/4} d^{3/2} \tanh ^{-1}\left (\frac {(-1)^{3/4} \sqrt {d} \sqrt {a+i a \tan (e+f x)}}{\sqrt {a} \sqrt {c+d \tan (e+f x)}}\right )}{\sqrt {a} f}-\frac {i (c-i d)^{3/2} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {a} \sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d} \sqrt {a+i a \tan (e+f x)}}\right )}{\sqrt {2} \sqrt {a} f}+\frac {(i c-d) \sqrt {c+d \tan (e+f x)}}{f \sqrt {a+i a \tan (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Both result and optimal contain complex but leaf count is larger than twice
the leaf count of optimal. \(518\) vs. \(2(195)=390\).
time = 7.88, size = 518, normalized size = 2.66 \begin {gather*} \frac {\sqrt {\sec (e+f x)} \left (\sqrt {2} \sqrt {\frac {e^{i (e+f x)}}{1+e^{2 i (e+f x)}}} \sqrt {1+e^{2 i (e+f x)}} \left (-i (c-i d)^{3/2} \log \left (2 \left (\sqrt {c-i d} e^{i (e+f x)}+\sqrt {1+e^{2 i (e+f x)}} \sqrt {c-\frac {i d \left (-1+e^{2 i (e+f x)}\right )}{1+e^{2 i (e+f x)}}}\right )\right )-(1-i) d^{3/2} \left (\log \left (\frac {\left (\frac {1}{2}+\frac {i}{2}\right ) e^{\frac {i e}{2}} \left (d+i d e^{i (e+f x)}-c \left (i+e^{i (e+f x)}\right )+(1-i) \sqrt {d} \sqrt {1+e^{2 i (e+f x)}} \sqrt {c-\frac {i d \left (-1+e^{2 i (e+f x)}\right )}{1+e^{2 i (e+f x)}}}\right )}{d^{5/2} \left (i+e^{i (e+f x)}\right )}\right )-\log \left (-\frac {\left (\frac {1}{2}-\frac {i}{2}\right ) e^{\frac {i e}{2}} \left (c+i d+i c e^{i (e+f x)}+d e^{i (e+f x)}+(1+i) \sqrt {d} \sqrt {1+e^{2 i (e+f x)}} \sqrt {c-\frac {i d \left (-1+e^{2 i (e+f x)}\right )}{1+e^{2 i (e+f x)}}}\right )}{d^{5/2} \left (-i+e^{i (e+f x)}\right )}\right )\right )\right )+\frac {2 i (c+i d) \sqrt {c+d \tan (e+f x)}}{\sqrt {\sec (e+f x)}}\right )}{2 f \sqrt {a+i a \tan (e+f x)}} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 1168 vs. \(2 (152 ) = 304\).
time = 0.52, size = 1169, normalized size = 5.99
method | result | size |
derivativedivides | \(\text {Expression too large to display}\) | \(1169\) |
default | \(\text {Expression too large to display}\) | \(1169\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 928 vs. \(2 (151) = 302\).
time = 0.92, size = 928, normalized size = 4.76 \begin {gather*} -\frac {{\left (\sqrt {2} a f \sqrt {-\frac {c^{3} - 3 i \, c^{2} d - 3 \, c d^{2} + i \, d^{3}}{a f^{2}}} e^{\left (i \, f x + i \, e\right )} \log \left (\frac {\sqrt {2} a f \sqrt {-\frac {c^{3} - 3 i \, c^{2} d - 3 \, c d^{2} + i \, d^{3}}{a f^{2}}} e^{\left (i \, f x + i \, e\right )} + \sqrt {2} {\left ({\left (i \, c + d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + i \, c + d\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}}{i \, c + d}\right ) - \sqrt {2} a f \sqrt {-\frac {c^{3} - 3 i \, c^{2} d - 3 \, c d^{2} + i \, d^{3}}{a f^{2}}} e^{\left (i \, f x + i \, e\right )} \log \left (-\frac {\sqrt {2} a f \sqrt {-\frac {c^{3} - 3 i \, c^{2} d - 3 \, c d^{2} + i \, d^{3}}{a f^{2}}} e^{\left (i \, f x + i \, e\right )} - \sqrt {2} {\left ({\left (i \, c + d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + i \, c + d\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}}{i \, c + d}\right ) + a f \sqrt {-\frac {4 i \, d^{3}}{a f^{2}}} e^{\left (i \, f x + i \, e\right )} \log \left (\frac {2 \, {\left (4 \, \sqrt {2} {\left (d^{3} e^{\left (3 i \, f x + 3 i \, e\right )} + d^{3} e^{\left (i \, f x + i \, e\right )}\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} - {\left ({\left (i \, a c d + 3 \, a d^{2}\right )} f e^{\left (2 i \, f x + 2 i \, e\right )} + {\left (i \, a c d - a d^{2}\right )} f\right )} \sqrt {-\frac {4 i \, d^{3}}{a f^{2}}}\right )}}{i \, c^{3} + c^{2} d + i \, c d^{2} + d^{3} + {\left (i \, c^{3} + c^{2} d + i \, c d^{2} + d^{3}\right )} e^{\left (2 i \, f x + 2 i \, e\right )}}\right ) - a f \sqrt {-\frac {4 i \, d^{3}}{a f^{2}}} e^{\left (i \, f x + i \, e\right )} \log \left (\frac {2 \, {\left (4 \, \sqrt {2} {\left (d^{3} e^{\left (3 i \, f x + 3 i \, e\right )} + d^{3} e^{\left (i \, f x + i \, e\right )}\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} - {\left ({\left (-i \, a c d - 3 \, a d^{2}\right )} f e^{\left (2 i \, f x + 2 i \, e\right )} + {\left (-i \, a c d + a d^{2}\right )} f\right )} \sqrt {-\frac {4 i \, d^{3}}{a f^{2}}}\right )}}{i \, c^{3} + c^{2} d + i \, c d^{2} + d^{3} + {\left (i \, c^{3} + c^{2} d + i \, c d^{2} + d^{3}\right )} e^{\left (2 i \, f x + 2 i \, e\right )}}\right ) + 2 \, \sqrt {2} {\left ({\left (-i \, c + d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} - i \, c + d\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}\right )} e^{\left (-i \, f x - i \, e\right )}}{4 \, a f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (c + d \tan {\left (e + f x \right )}\right )^{\frac {3}{2}}}{\sqrt {i a \left (\tan {\left (e + f x \right )} - i\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (c+d\,\mathrm {tan}\left (e+f\,x\right )\right )}^{3/2}}{\sqrt {a+a\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________